//
//  YLMallItemCollectionViewCell.m
//  YLFinanceService
//
//  Created by she1323 on 2017/9/5.
//  Copyright © 2017年 she1323. All rights reserved.
//

#import "YLMallItemCollectionViewCell.h"
#import "YLMallItemModel.h"
@interface YLMallItemCollectionViewCell ()
@property (weak, nonatomic) IBOutlet UIImageView *icon;
@property (weak, nonatomic) IBOutlet UILabel *titleLabel;

@end

@implementation YLMallItemCollectionViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setModel:(YLMallItemModel *)model
{
    _model = model;
    _icon.image = [UIImage imageNamed:model.icon];
    _titleLabel.text = model.title;
}

+ (NSString *)cellID
{
    return @"YLMallItemCollectionViewCell";
}

@end
